package org.zhq.core;

import java.io.Closeable;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

/**
 * @author zhengquan
 * @date 2019/2/24
 */
public interface Scheduler extends Closeable {
    ScheduledFuture<?> schedule(Runnable runnable, long delay, TimeUnit unit);
    void delivery(Runnable runnable);
}
